package com.softtek.base.action.dashboard;

import com.softtek.base.action.converter.DepartmentInfoConverter;
import com.softtek.base.business.biz.DepartmentInfoBiz;
import com.softtek.base.business.biz.QuestionTwoBiz;
import com.softtek.base.domain.DepartmentInfo;
import com.softtek.base.domain.QuestionTwo;
import com.softtek.base.domain.VO.RegionVO;
import com.softtek.base.sugar.config.FilePathConfig;
import com.softtek.base.sugar.tools.StringConverters;
import com.softtek.base.sugar.web.FileUtils;
import com.softtek.base.sugar.web.WebLayerUtil;
import com.softtek.base.sugar.web.excel.ExcelFileExport;
import com.softtek.base.sugar.web.excel.ExcelMapExport;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
 * Author: val.jzp
 */
@Controller
@RequestMapping("/web/depart")
public class DepartmentInfoAction {

    private final static Logger logger = LoggerFactory.getLogger(DepartmentInfoAction.class);
    private final static Integer DEFAULT_PAGE_LIST_NUM = 20;

    @Autowired
    private DepartmentInfoBiz departmentInfoBiz;

    @Autowired
    private QuestionTwoBiz questionTwoBiz;

    // ******************************************************************************
    // ********************************* CRUD START *********************************
    // ******************************************************************************

    @RequestMapping("/test")
    @ResponseBody
    public void test() {
        departmentInfoBiz.groupImage();
    }

    /**
     * 导出数据
     */
    @RequestMapping("/exportExcelFile")
    @ResponseBody
    public void exportExcelFile(HttpServletResponse response) {

        List<DepartmentInfo> departmentInfoList = this.departmentInfoBiz.findList();
        JSONObject jsonObject = DepartmentInfoConverter.getJson(departmentInfoList);

        JSONArray jsonArray = jsonObject.getJSONArray("rows");

        try {
            ExcelFileExport.exportExcelFile("departmentInfo", ExcelMapExport.DEPARTMENT_EXPORT_MAP(), jsonArray, response);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    /**
     * 导出报表
     */
    @RequestMapping("/exportReportForm")
    @ResponseBody
    public void exportReportForm(HttpServletResponse response) {

        JSONObject jsonObject = new JSONObject();
        JSONArray jsonArray = new JSONArray();
        List<RegionVO> regionVOList = departmentInfoBiz.countKaSr();

        for (RegionVO regionVO : regionVOList) {
            //第一列
            jsonObject.put("kaSr", WebLayerUtil.getDefaultByNullString(regionVO.getChannel(), ""));

            //获取到该区域中所有的有效门店
            int canUseNum = departmentInfoBiz.countByKaSrAndCanUserDepartment(regionVO.getChannel());


            //问题1
            Double questionOneAAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneAAnswer", regionVO.getChannel());
            Double questionOneBAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneBAnswer", regionVO.getChannel());
            Double questionOneCAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneCAnswer", regionVO.getChannel());
            Double questionOneDAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneDAnswer", regionVO.getChannel());
            Double questionOneEAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneEAnswer", regionVO.getChannel());
            Double questionOneFAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneFAnswer", regionVO.getChannel());
            Double questionOneGAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneGAnswer", regionVO.getChannel());
            Double questionOneHAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionOneHAnswer", regionVO.getChannel());
            //问题1.A的总价格
            List<DepartmentInfo> departmentInfoQuestionOneAList = departmentInfoBiz.findByKaSr("questionOneAAnswer", regionVO.getChannel());
            Double questionOneAPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneAList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneAPrice())) {
                    questionOneAPrice =questionOneAPrice + Double.valueOf(departmentInfo.getQuestionOneAPrice());
                }
            }

            //问题1.B的总价格
            List<DepartmentInfo> departmentInfoQuestionOneBList = departmentInfoBiz.findByKaSr("questionOneBAnswer", regionVO.getChannel());
            Double questionOneBPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneBList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneBPrice())) {
                    questionOneBPrice =questionOneBPrice + Double.valueOf(departmentInfo.getQuestionOneBPrice());
                }
            }

            //问题1.C的总价格
            List<DepartmentInfo> departmentInfoQuestionOneCList = departmentInfoBiz.findByKaSr("questionOneCAnswer", regionVO.getChannel());
            Double questionOneCPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneCList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneCPrice())) {
                    questionOneCPrice =questionOneCPrice + Double.valueOf(departmentInfo.getQuestionOneCPrice());
                }
            }

            //问题1.D的总价格
            List<DepartmentInfo> departmentInfoQuestionOneDList = departmentInfoBiz.findByKaSr("questionOneDAnswer", regionVO.getChannel());
            Double questionOneDPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneDList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneDPrice())) {
                    questionOneDPrice =questionOneDPrice + Double.valueOf(departmentInfo.getQuestionOneDPrice());
                }
            }

            //问题1.E的总价格
            List<DepartmentInfo> departmentInfoQuestionOneEList = departmentInfoBiz.findByKaSr("questionOneEAnswer", regionVO.getChannel());
            Double questionOneEPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneEList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneEPrice())) {
                    questionOneEPrice =questionOneEPrice + Double.valueOf(departmentInfo.getQuestionOneEPrice());
                }
            }

            //问题1.F的总价格
            List<DepartmentInfo> departmentInfoQuestionOneFList = departmentInfoBiz.findByKaSr("questionOneFAnswer", regionVO.getChannel());
            Double questionOneFPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneFList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneFPrice())) {
                    questionOneFPrice =questionOneFPrice + Double.valueOf(departmentInfo.getQuestionOneFPrice());
                }
            }

            //问题1.G的总价格
            List<DepartmentInfo> departmentInfoQuestionOneGList = departmentInfoBiz.findByKaSr("questionOneGAnswer", regionVO.getChannel());
            Double questionOneGPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneGList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneGPrice())) {
                    questionOneGPrice =questionOneGPrice + Double.valueOf(departmentInfo.getQuestionOneGPrice());
                }
            }

            //问题1.H的总价格
            List<DepartmentInfo> departmentInfoQuestionOneHList = departmentInfoBiz.findByKaSr("questionOneHAnswer", regionVO.getChannel());
            Double questionOneHPrice = 0.0;
            for (DepartmentInfo departmentInfo : departmentInfoQuestionOneHList) {
                if (StringUtils.isNotBlank(departmentInfo.getQuestionOneHPrice())) {
                    questionOneHPrice =questionOneHPrice + Double.valueOf(departmentInfo.getQuestionOneHPrice());
                }
            }

            //问题2
            Double questionTwoAnswer = (double) departmentInfoBiz.countQuestionTwoAnswer(regionVO.getChannel());
            //问题3
            Double questionThreeAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionThreeAnswer", regionVO.getChannel());
            //问题4
            Double questionFourAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionFourAnswer", regionVO.getChannel());
            //问题5
            Double questionFiveAAnswer = (double) departmentInfoBiz.countQuestionFiveAnswer("1", null, regionVO.getChannel());
            Double questionFiveBAnswer = (double) departmentInfoBiz.countQuestionFiveAnswer(null, "1", regionVO.getChannel());
            //问题7
            Double questionSevenAnswer = (double) departmentInfoBiz.countQuestionSevenAnswer(regionVO.getChannel());
            //问题8
            Double questionEightAnswerA = (double) departmentInfoBiz.countQuestionEightAnswer("a", regionVO.getChannel());
            Double questionEightAnswerB = (double) departmentInfoBiz.countQuestionEightAnswer("b", regionVO.getChannel());
            Double questionEightAnswerC = (double) departmentInfoBiz.countQuestionEightAnswer("c", regionVO.getChannel());
            Double questionEightAnswerD = (double) departmentInfoBiz.countQuestionEightAnswer("d", regionVO.getChannel());
            //问题9
            Double questionNineAnswer = (double) departmentInfoBiz.countQuestionOneAnswer("questionNineAnswer", regionVO.getChannel());
            //问题10
            Double questionTenAnswer = (double) departmentInfoBiz.countQuestionTwoAnswer("questionTenAnswer", regionVO.getChannel());
            //问题11
            Double questionElevenAnswer = (double) departmentInfoBiz.countQuestionTwoAnswer("questionElevenAnswer", regionVO.getChannel());

            if (canUseNum > 0) {
                //Q1
                jsonObject.put("questionOneAAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneAAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneBAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneBAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneCAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneCAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneDAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneDAnswer / canUseNum) * 100) + "%", ""));

                jsonObject.put("questionOneEAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneEAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneFAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneFAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneGAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneGAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionOneHAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionOneHAnswer / canUseNum) * 100) + "%", ""));
                //Q1价格
                jsonObject.put("questionOneAPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneAPrice / canUseNum), ""));
                jsonObject.put("questionOneBPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneBPrice / canUseNum), ""));
                jsonObject.put("questionOneCPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneCPrice / canUseNum), ""));
                jsonObject.put("questionOneDPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneDPrice / canUseNum), ""));
                jsonObject.put("questionOneEPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneEPrice / canUseNum), ""));
                jsonObject.put("questionOneFPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneFPrice / canUseNum), ""));
                jsonObject.put("questionOneGPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneGPrice / canUseNum), ""));
                jsonObject.put("questionOneHPrice", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",questionOneHPrice / canUseNum), ""));

                //Q2
                jsonObject.put("questionTwoAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionTwoAnswer / canUseNum) * 100) + "%", ""));
                //Q3
                jsonObject.put("questionThreeAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionThreeAnswer / canUseNum) * 100) + "%", ""));
                //Q4
                jsonObject.put("questionFourAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionFourAnswer / canUseNum) * 100) + "%", ""));
                //Q5
                jsonObject.put("questionFiveAAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionFiveAAnswer / canUseNum) * 100) + "%", ""));
                jsonObject.put("questionFiveBAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionFiveBAnswer / canUseNum) * 100) + "%", ""));
                //Q7
                jsonObject.put("questionSevenAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionSevenAnswer / canUseNum) * 100) + "%", ""));

                //Q8
                if (questionSevenAnswer> 0){
                    jsonObject.put("questionEightAnswerA", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionEightAnswerA / questionSevenAnswer) * 100) + "%", ""));
                    jsonObject.put("questionEightAnswerB", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionEightAnswerB / questionSevenAnswer) * 100) + "%", ""));
                    jsonObject.put("questionEightAnswerC", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionEightAnswerC / questionSevenAnswer) * 100) + "%", ""));
                    jsonObject.put("questionEightAnswerD", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionEightAnswerD / questionSevenAnswer) * 100) + "%", ""));
                }
                else {
                    jsonObject.put("questionEightAnswerA", WebLayerUtil.getDefaultByNullString("0.00%", ""));
                    jsonObject.put("questionEightAnswerB", WebLayerUtil.getDefaultByNullString("0.00%", ""));
                    jsonObject.put("questionEightAnswerC", WebLayerUtil.getDefaultByNullString("0.00%", ""));
                    jsonObject.put("questionEightAnswerD", WebLayerUtil.getDefaultByNullString("0.00%", ""));
                }
                  //Q9
                jsonObject.put("questionNineAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionNineAnswer / canUseNum) * 100) + "%", ""));
                //Q10
                jsonObject.put("questionTenAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionTenAnswer / canUseNum) * 100) + "%", ""));
                //Q11
                jsonObject.put("questionElevenAnswer", WebLayerUtil.getDefaultByNullString(String.format("%.2f ",(questionElevenAnswer / canUseNum) * 100) + "%", ""));
            }

            jsonArray.add(jsonObject);
        }

        try {
            ExcelFileExport.exportExcelFile("reportFormInfo", ExcelMapExport.REPORT_FORM_EXPORT_MAP(), jsonArray, response);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }


    /**
     * 获取与会人员信息
     */
    @RequestMapping("/picture")
    public ModelAndView picture(@RequestParam(value = "remarkUrl", required = false) String remarkUrl) {

        ModelAndView modelAndView = new ModelAndView();

        modelAndView.addObject("remarkUrl", remarkUrl);

        modelAndView.setViewName("pages/departmentInfo/picture");

        return modelAndView;
    }


    /**
     * 打开列表页面
     */
    @RequestMapping("/getDepartmentInfoListPage")
    public ModelAndView getDepartmentInfoListPage() {

        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("pages/departmentInfo/departmentInfoList");

        return modelAndView;
    }

    /**
     * 分页获取JSON数据
     */
    @RequestMapping("/getDepartmentInfoListJSON")
    @ResponseBody
    public JSONObject getDepartmentInfoListJSON(@RequestParam(value = "page", required = false) String pageNowParam,
                                                @RequestParam(value = "rows", required = false) String pageSizeParam,
                                                @RequestParam(value = "departmentName", required = false) String departmentName,
                                                @RequestParam(value = "departmentNum", required = false) String departmentNum,
                                                @RequestParam(value = "status", required = false) String status,
                                                HttpServletRequest request) {

        Integer pageNow = StringConverters.ToInteger(pageNowParam);
        Integer pageSize = StringConverters.ToInteger(pageSizeParam);

        if (pageNow == null || pageSize == null) {
            pageNow = 1;
            pageSize = DEFAULT_PAGE_LIST_NUM;
        }

//        Map<String, String> queryHash = new HashMap<String, String>();
//        queryHash.put("departmentName", departmentName);
//        queryHash.put("departmentNum", departmentNum);
        List<DepartmentInfo> departmentInfoList = departmentInfoBiz.findByType(pageNow, pageSize, departmentName, departmentNum, status);
        Long totalNum = Long.valueOf(departmentInfoBiz.count(departmentName, departmentNum, status));

        JSONObject result = DepartmentInfoConverter.getJson(departmentInfoList, totalNum);

        int isEdit = departmentInfoBiz.countEdit();
        int totalNumUnType = departmentInfoBiz.count(null, null, null);
        int unEdit = totalNumUnType - isEdit;

        JSONObject jsonObject = new JSONObject();
        jsonObject.put("interviewUserName", "<span style='color:red;'>已编辑：" + isEdit + "&nbsp;&nbsp;未编辑：" + unEdit + "</span>");

        JSONArray jsonArray = new JSONArray();
        jsonArray.add(jsonObject);

        result.put("footer", jsonArray);

        return result;
    }

    /**
     * 获取详情页面
     */
    @RequestMapping("/getDepartmentInfoViewPage")
    public ModelAndView getDepartmentInfoViewPage(@RequestParam(value = "departmentInfoId", required = false) String departmentInfoId) {

        Long departmentInfoIdLong = StringConverters.ToLong(departmentInfoId);

        DepartmentInfo departmentInfo = null;
        if (departmentInfoIdLong != null) {
            departmentInfo = departmentInfoBiz.findModel(departmentInfoIdLong);
        }

        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("pages/departmentInfo/departmentInfoList");
        modelAndView.addObject("departmentInfo", departmentInfo);
        return modelAndView;
    }

    /**
     * 获取编辑页面
     */
    @RequestMapping("/getDepartmentInfoEditPage")
    public ModelAndView getDepartmentInfoEditPage(@RequestParam(value = "departmentInfoId", required = false) String departmentInfoId) {

        Long departmentInfoIdLong = StringConverters.ToLong(departmentInfoId);

        DepartmentInfo departmentInfo = null;
        QuestionTwo questionTwo = null;
        if (departmentInfoIdLong != null) {
            departmentInfo = departmentInfoBiz.findModel(departmentInfoIdLong);
            if (departmentInfo.getQuestionTwo() != null) {
                questionTwo = departmentInfo.getQuestionTwo();
            }
        }


        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("pages/departmentInfo/departmentEdit");
        modelAndView.addObject("departmentInfo", departmentInfo);
        modelAndView.addObject("questionTwo", questionTwo);
        return modelAndView;
    }

    /**
     * 执行提交的新增或修改请求
     */
    @RequestMapping("/executeDepartmentInfoEdit")
    @ResponseBody
    public String executeDepartmentInfoEdit(DepartmentInfo departmentInfo, QuestionTwo questionTwo,
                                            @RequestParam(value = "interviewDateResult", required = false) String interviewDateResult,
                                            @RequestParam(value = "enterDepartmentDateResult", required = false) String enterDepartmentDateResult,
                                            @RequestParam(value = "leaveDepartmentDateResult", required = false) String leaveDepartmentDateResult) {

        Date interviewDate = StringConverters.ToDate(interviewDateResult, StringConverters.DATE_FORMAT_YEAR_MONTH_DAY);
        Date enterDepartmentDate = StringConverters.ToDate(enterDepartmentDateResult, StringConverters.DATE_FORMAT_FULL_SECOND);
        Date leaveDepartmentDate = StringConverters.ToDate(leaveDepartmentDateResult, StringConverters.DATE_FORMAT_FULL_SECOND);

        departmentInfo.setInterviewDate(interviewDate);
        departmentInfo.setEnterDepartmentDate(enterDepartmentDate);
        departmentInfo.setLeaveDepartmentDate(leaveDepartmentDate);

        departmentInfoBiz.addOrUpdate(departmentInfo, questionTwo, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
        return "1";
    }

    /**
     * 上传图片
     */
    @RequestMapping("/uploadPicture")
    @ResponseBody
    public String uploadPicture(@RequestParam(value = "questionOneAImageUrl1", required = false) MultipartFile uploadFile,
                                @RequestParam(value = "questionOneAImageUrl2File", required = false) MultipartFile uploadFile2,
                                @RequestParam(value = "questionOneAImageUrl3File", required = false) MultipartFile uploadFile3,
                                @RequestParam(value = "questionOneBImageUrl1", required = false) MultipartFile uploadFile4,
                                @RequestParam(value = "questionOneBImageUrl2File", required = false) MultipartFile uploadFile5,
                                @RequestParam(value = "questionOneBImageUrl3File", required = false) MultipartFile uploadFile6,
                                @RequestParam(value = "questionOneCImageUrl1", required = false) MultipartFile uploadFileC1,
                                @RequestParam(value = "questionOneCImageUrl2File", required = false) MultipartFile uploadFileC2,
                                @RequestParam(value = "questionOneCImageUrl3File", required = false) MultipartFile uploadFileC3,
                                @RequestParam(value = "questionOneDImageUrl1", required = false) MultipartFile uploadFileD1,
                                @RequestParam(value = "questionOneDImageUrl2File", required = false) MultipartFile uploadFileD2,
                                @RequestParam(value = "questionOneDImageUrl3File", required = false) MultipartFile uploadFileD3,
                                @RequestParam(value = "questionOneEImageUrl1", required = false) MultipartFile uploadFileE1,
                                @RequestParam(value = "questionOneEImageUrl2File", required = false) MultipartFile uploadFileE2,
                                @RequestParam(value = "questionOneEImageUrl3File", required = false) MultipartFile uploadFileE3,
                                @RequestParam(value = "questionOneFImageUrl1", required = false) MultipartFile uploadFileF1,
                                @RequestParam(value = "questionOneFImageUrl2File", required = false) MultipartFile uploadFileF2,
                                @RequestParam(value = "questionOneFImageUrl3File", required = false) MultipartFile uploadFileF3,
                                @RequestParam(value = "questionOneGImageUrl1", required = false) MultipartFile uploadFileG1,
                                @RequestParam(value = "questionOneGImageUrl2File", required = false) MultipartFile uploadFileG2,
                                @RequestParam(value = "questionOneGImageUrl3File", required = false) MultipartFile uploadFileG3,
                                @RequestParam(value = "questionOneHImageUrl1", required = false) MultipartFile uploadFileH1,
                                @RequestParam(value = "questionOneHImageUrl2File", required = false) MultipartFile uploadFileH2,
                                @RequestParam(value = "questionOneHImageUrl3File", required = false) MultipartFile uploadFileH3,
                                @RequestParam(value = "questionTwoAImageUrl1", required = false) MultipartFile uploadFileTwoA1,
                                @RequestParam(value = "questionTwoAImageUrl2", required = false) MultipartFile uploadFileTwoA2,
                                @RequestParam(value = "questionTwoAImageUrl3", required = false) MultipartFile uploadFileTwoA3,
                                @RequestParam(value = "questionTwoBImageUrl1", required = false) MultipartFile uploadFileTwoB1,
                                @RequestParam(value = "questionTwoBImageUrl2", required = false) MultipartFile uploadFileTwoB2,
                                @RequestParam(value = "questionTwoBImageUrl3", required = false) MultipartFile uploadFileTwoB3,
                                @RequestParam(value = "questionTwoCImageUrl1", required = false) MultipartFile uploadFileTwoC1,
                                @RequestParam(value = "questionTwoCImageUrl2", required = false) MultipartFile uploadFileTwoC2,
                                @RequestParam(value = "questionTwoCImageUrl3", required = false) MultipartFile uploadFileTwoC3,
                                @RequestParam(value = "questionTwoDImageUrl1", required = false) MultipartFile uploadFileTwoD1,
                                @RequestParam(value = "questionTwoDImageUrl2", required = false) MultipartFile uploadFileTwoD2,
                                @RequestParam(value = "questionTwoDImageUrl3", required = false) MultipartFile uploadFileTwoD3,
                                @RequestParam(value = "questionTwoEImageUrl1", required = false) MultipartFile uploadFileTwoE1,
                                @RequestParam(value = "questionTwoEImageUrl2", required = false) MultipartFile uploadFileTwoE2,
                                @RequestParam(value = "questionTwoEImageUrl3", required = false) MultipartFile uploadFileTwoE3,
                                @RequestParam(value = "questionTwoGImageUrl1", required = false) MultipartFile uploadFileTwoG1,
                                @RequestParam(value = "questionTwoGImageUrl2", required = false) MultipartFile uploadFileTwoG2,
                                @RequestParam(value = "questionTwoGImageUrl3", required = false) MultipartFile uploadFileTwoG3,
                                @RequestParam(value = "questionThreeImageUrl1", required = false) MultipartFile uploadFileThree1,
                                @RequestParam(value = "questionThreeImageUrl2File", required = false) MultipartFile uploadFileThree2,
                                @RequestParam(value = "questionThreeImageUrl3File", required = false) MultipartFile uploadFileThree3,
                                @RequestParam(value = "questionFourImageUrl1", required = false) MultipartFile uploadFileFour1,
                                @RequestParam(value = "questionFourImageUrl2File", required = false) MultipartFile uploadFileFour2,
                                @RequestParam(value = "questionFourImageUrl3File", required = false) MultipartFile uploadFileFour3,
                                @RequestParam(value = "questionFiveAImageUrl1", required = false) MultipartFile uploadFileFiveA1,
                                @RequestParam(value = "questionFiveAImageUrl2", required = false) MultipartFile uploadFileFiveA2,
                                @RequestParam(value = "questionFiveAImageUrl3", required = false) MultipartFile uploadFileFiveA3,
                                @RequestParam(value = "questionFiveBImageUrl1", required = false) MultipartFile uploadFileFiveB1,
                                @RequestParam(value = "questionFiveBImageUrl2", required = false) MultipartFile uploadFileFiveB2,
                                @RequestParam(value = "questionFiveBImageUrl3", required = false) MultipartFile uploadFileFiveB3,
                                @RequestParam(value = "questionFiveCImageUrl1", required = false) MultipartFile uploadFileFiveC1,
                                @RequestParam(value = "questionFiveCImageUrl2", required = false) MultipartFile uploadFileFiveC2,
                                @RequestParam(value = "questionFiveCImageUrl3", required = false) MultipartFile uploadFileFiveC3,
                                @RequestParam(value = "questionSixImageUrl1", required = false) MultipartFile uploadFileSix1,
                                @RequestParam(value = "questionSixImageUrl2", required = false) MultipartFile uploadFileSix2,
                                @RequestParam(value = "questionSixImageUrl3", required = false) MultipartFile uploadFileSix3,
                                @RequestParam(value = "questionSevenImageUrl1", required = false) MultipartFile uploadFileSeven1,
                                @RequestParam(value = "questionSevenImageUrl2", required = false) MultipartFile uploadFileSeven2,
                                @RequestParam(value = "questionSevenImageUrl3", required = false) MultipartFile uploadFileSeven3,
                                @RequestParam(value = "questionEightImageUrlA1", required = false) MultipartFile uploadFileEight1,
                                @RequestParam(value = "questionEightImageUrlB1", required = false) MultipartFile uploadFileEight2,
                                @RequestParam(value = "questionEightImageUrlC1", required = false) MultipartFile uploadFileEight3,
                                @RequestParam(value = "questionTenImageUrl1", required = false) MultipartFile uploadFileTen1,
                                @RequestParam(value = "questionTenImageUrl2", required = false) MultipartFile uploadFileTen2,
                                @RequestParam(value = "questionTenImageUrl3", required = false) MultipartFile uploadFileTen3,
                                @RequestParam(value = "questionElevenImageUrl1", required = false) MultipartFile uploadFileEleven1,
                                @RequestParam(value = "questionElevenImageUrl2", required = false) MultipartFile uploadFileEleven2,
                                @RequestParam(value = "questionElevenImageUrl3", required = false) MultipartFile uploadFileEleven3,
                                @RequestParam(value = "questionFourOnePicture1", required = false) MultipartFile questionFourOnePicture1,
                                @RequestParam(value = "questionFourOneImage2", required = false) MultipartFile questionFourOneImage2,
                                @RequestParam(value = "questionFourOneImage3", required = false) MultipartFile questionFourOneImage3,
                                @RequestParam(value = "questionFourOneImage4", required = false) MultipartFile questionFourOneImage4,

                                @RequestParam(value = "canUserDepartmentImage1File", required = false) MultipartFile canUserDepartmentImage1File,
                                @RequestParam(value = "canUserDepartmentImage2File", required = false) MultipartFile canUserDepartmentImage2File,
                                @RequestParam(value = "departmentInfoId", required = false) String departmentInfoId
    ) {
        logger.info(departmentInfoId);
        DepartmentInfo departmentInfo = departmentInfoBiz.findModel(StringConverters.ToLong(departmentInfoId));

        // 当上传文件成功时设置文件名为新文件名
        String fileName = FileUtils.fileUpload(uploadFile, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileName != null) {
//            departmentInfo.setQuestionOneAImageUrl(fileName);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileName;

        }
        String fileNameQuestionOneAImageUrl2 = FileUtils.fileUpload(uploadFile2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneAImageUrl2 != null) {
//            departmentInfo.setQuestionOneAImageUrl2(fileNameQuestionOneAImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneAImageUrl2;
        }

        String fileNameQuestionOneAImageUrl3 = FileUtils.fileUpload(uploadFile3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneAImageUrl3 != null) {
//            departmentInfo.setQuestionOneAImageUrl3(fileNameQuestionOneAImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneAImageUrl3;
        }

        String fileNameQuestionOneBImageUrl1 = FileUtils.fileUpload(uploadFile4, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneBImageUrl1 != null) {
//            departmentInfo.setQuestionOneBImageUrl(fileNameQuestionOneBImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneBImageUrl1;
        }

        String fileNameQuestionOneBImageUrl2 = FileUtils.fileUpload(uploadFile5, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneBImageUrl2 != null) {
//            departmentInfo.setQuestionOneBImageUrl2(fileNameQuestionOneBImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneBImageUrl2;
        }


        String fileNameQuestionOneBImageUrl3 = FileUtils.fileUpload(uploadFile6, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneBImageUrl3 != null) {
//            departmentInfo.setQuestionOneBImageUrl3(fileNameQuestionOneBImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneBImageUrl3;
        }
        String fileNameQuestionOneCImageUrl1 = FileUtils.fileUpload(uploadFileC1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneCImageUrl1 != null) {
//            departmentInfo.setQuestionOneCImageUrl(fileNameQuestionOneCImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneCImageUrl1;
        }

        String fileNameQuestionOneCImageUrl2 = FileUtils.fileUpload(uploadFileC2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneCImageUrl2 != null) {
//            departmentInfo.setQuestionOneCImageUrl2(fileNameQuestionOneCImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneCImageUrl2;
        }
        String fileNameQuestionOneCImageUrl3 = FileUtils.fileUpload(uploadFileC3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneCImageUrl3 != null) {
//            departmentInfo.setQuestionOneCImageUrl3(fileNameQuestionOneCImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneCImageUrl3;
        }

        String fileNameQuestionOneDImageUrl1 = FileUtils.fileUpload(uploadFileD1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneDImageUrl1 != null) {
//            departmentInfo.setQuestionOneDImageUrl(fileNameQuestionOneDImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneDImageUrl1;
        }

        String fileNameQuestionOneDImageUrl2 = FileUtils.fileUpload(uploadFileD2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneDImageUrl2 != null) {
//            departmentInfo.setQuestionOneDImageUrl2(fileNameQuestionOneDImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneDImageUrl2;
        }
        String fileNameQuestionOneDImageUrl3 = FileUtils.fileUpload(uploadFileD3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneDImageUrl3 != null) {
//            departmentInfo.setQuestionOneDImageUrl3(fileNameQuestionOneDImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneDImageUrl3;
        }

        String fileNameQuestionOneEImageUrl1 = FileUtils.fileUpload(uploadFileE1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneEImageUrl1 != null) {
//            departmentInfo.setQuestionOneEImageUrl(fileNameQuestionOneEImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneEImageUrl1;
        }

        String fileNameQuestionOneEImageUrl2 = FileUtils.fileUpload(uploadFileE2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneEImageUrl2 != null) {
//            departmentInfo.setQuestionOneEImageUrl2(fileNameQuestionOneEImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneEImageUrl2;
        }
        String fileNameQuestionOneEImageUrl3 = FileUtils.fileUpload(uploadFileE3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneEImageUrl3 != null) {
//            departmentInfo.setQuestionOneEImageUrl3(fileNameQuestionOneEImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneEImageUrl3;
        }

        String fileNameQuestionOneFImageUrl1 = FileUtils.fileUpload(uploadFileF1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneFImageUrl1 != null) {
//            departmentInfo.setQuestionOneFImageUrl(fileNameQuestionOneFImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneFImageUrl1;
        }

        String fileNameQuestionOneFImageUrl2 = FileUtils.fileUpload(uploadFileF2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneFImageUrl2 != null) {
//            departmentInfo.setQuestionOneFImageUrl2(fileNameQuestionOneFImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneFImageUrl2;
        }
        String fileNameQuestionOneFImageUrl3 = FileUtils.fileUpload(uploadFileF3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneFImageUrl3 != null) {
//            departmentInfo.setQuestionOneFImageUrl3(fileNameQuestionOneFImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneFImageUrl3;
        }

        String fileNameQuestionOneGImageUrl1 = FileUtils.fileUpload(uploadFileG1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneGImageUrl1 != null) {
//            departmentInfo.setQuestionOneGImageUrl(fileNameQuestionOneGImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneGImageUrl1;
        }

        String fileNameQuestionOneGImageUrl2 = FileUtils.fileUpload(uploadFileG2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneGImageUrl2 != null) {
//            departmentInfo.setQuestionOneGImageUrl2(fileNameQuestionOneGImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneGImageUrl2;
        }
        String fileNameQuestionOneGImageUrl3 = FileUtils.fileUpload(uploadFileG3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneGImageUrl3 != null) {
//            departmentInfo.setQuestionOneGImageUrl3(fileNameQuestionOneGImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneGImageUrl3;
        }

        String fileNameQuestionOneHImageUrl1 = FileUtils.fileUpload(uploadFileH1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneHImageUrl1 != null) {
//            departmentInfo.setQuestionOneHImageUrl(fileNameQuestionOneHImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneHImageUrl1;
        }

        String fileNameQuestionOneHImageUrl2 = FileUtils.fileUpload(uploadFileH2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneHImageUrl2 != null) {
//            departmentInfo.setQuestionOneHImageUrl2(fileNameQuestionOneHImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneHImageUrl2;
        }
        String fileNameQuestionOneHImageUrl3 = FileUtils.fileUpload(uploadFileH3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionOneHImageUrl3 != null) {
//            departmentInfo.setQuestionOneHImageUrl3(fileNameQuestionOneHImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionOneHImageUrl3;
        }


        //Q2图片
        String fileNameQuestionTwoAImageUrl1 = FileUtils.fileUpload(uploadFileTwoA1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoAImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,fileNameQuestionTwoAImageUrl1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoAImageUrl1;
        }

        String fileNameQuestionTwoAImageUrl2 = FileUtils.fileUpload(uploadFileTwoA2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoAImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,fileNameQuestionTwoAImageUrl2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoAImageUrl2;
        }

        String fileNameQuestionTwoAImageUrl3 = FileUtils.fileUpload(uploadFileTwoA3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoAImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,fileNameQuestionTwoAImageUrl3,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);

            return fileNameQuestionTwoAImageUrl3;
        }

        //Q2图片B
        String fileNameQuestionTwoBImageUrl1 = FileUtils.fileUpload(uploadFileTwoB1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoBImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,fileNameQuestionTwoBImageUrl1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoBImageUrl1;
        }

        String fileNameQuestionTwoBImageUrl2 = FileUtils.fileUpload(uploadFileTwoB2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoBImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,fileNameQuestionTwoBImageUrl2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoBImageUrl2;
        }

        String fileNameQuestionTwoBImageUrl3 = FileUtils.fileUpload(uploadFileTwoB3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoBImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,fileNameQuestionTwoBImageUrl3,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoBImageUrl3;
        }


        //Q2图片C
        String fileNameQuestionTwoCImageUrl1 = FileUtils.fileUpload(uploadFileTwoC1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoCImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,fileNameQuestionTwoCImageUrl1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoCImageUrl1;
        }

        String fileNameQuestionTwoCImageUrl2 = FileUtils.fileUpload(uploadFileTwoC2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoCImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,fileNameQuestionTwoCImageUrl2,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoCImageUrl2;
        }

        String fileNameQuestionTwoCImageUrl3 = FileUtils.fileUpload(uploadFileTwoC3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoCImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,fileNameQuestionTwoCImageUrl3,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoCImageUrl3;
        }


        //Q2图片D
        String fileNameQuestionTwoDImageUrl1 = FileUtils.fileUpload(uploadFileTwoD1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoDImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoDImageUrl1,null,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoDImageUrl1;
        }

        String fileNameQuestionTwoDImageUrl2 = FileUtils.fileUpload(uploadFileTwoD2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoDImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoDImageUrl2,null,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoDImageUrl2;
        }

        String fileNameQuestionTwoDImageUrl3 = FileUtils.fileUpload(uploadFileTwoD3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoDImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoDImageUrl3,null,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoDImageUrl3;
        }

        //Q2图片E
        String fileNameQuestionTwoEImageUrl1 = FileUtils.fileUpload(uploadFileTwoE1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoEImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoEImageUrl1,null,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoEImageUrl1;
        }

        String fileNameQuestionTwoEImageUrl2 = FileUtils.fileUpload(uploadFileTwoE2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoEImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoEImageUrl2,null,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoEImageUrl2;
        }

        String fileNameQuestionTwoEImageUrl3 = FileUtils.fileUpload(uploadFileTwoE3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoEImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoEImageUrl3,null,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoEImageUrl3;
        }

        //Q2图片G
        String fileNameQuestionTwoGImageUrl1 = FileUtils.fileUpload(uploadFileTwoG1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoGImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoGImageUrl1,null,null,null,null,null,null,null,null);
            return fileNameQuestionTwoGImageUrl1;
        }

        String fileNameQuestionTwoGImageUrl2 = FileUtils.fileUpload(uploadFileTwoG2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoGImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoGImageUrl2,null,null,null,null,null,null,null);
            return fileNameQuestionTwoGImageUrl2;
        }

        String fileNameQuestionTwoGImageUrl3 = FileUtils.fileUpload(uploadFileTwoG3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTwoGImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTwoGImageUrl3,null,null,null,null,null,null);
            return fileNameQuestionTwoGImageUrl3;
        }

        String fileNameQuestionThreeImageUrl1 = FileUtils.fileUpload(uploadFileThree1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionThreeImageUrl1 != null) {
//            departmentInfo.setQuestionThreeImageUrl(fileNameQuestionThreeImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionThreeImageUrl1;
        }

        String fileNameQuestionThreeImageUrl2 = FileUtils.fileUpload(uploadFileThree2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionThreeImageUrl2 != null) {
//            departmentInfo.setQuestionThreeImageUrl2(fileNameQuestionThreeImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionThreeImageUrl2;
        }

        String fileNameQuestionThreeImageUrl3 = FileUtils.fileUpload(uploadFileThree3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionThreeImageUrl3 != null) {
//            departmentInfo.setQuestionThreeImageUrl3(fileNameQuestionThreeImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionThreeImageUrl3;
        }

        String fileNameQuestionFourImageUrl1 = FileUtils.fileUpload(uploadFileFour1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourImageUrl1 != null) {
//            departmentInfo.setQuestionFourImageUrl(fileNameQuestionFourImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFourImageUrl1;
        }

        String fileNameQuestionFourImageUrl2 = FileUtils.fileUpload(uploadFileFour2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourImageUrl2 != null) {
//            departmentInfo.setQuestionFourImageUrl2(fileNameQuestionFourImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFourImageUrl2;
        }

        String fileNameQuestionFourImageUrl3 = FileUtils.fileUpload(uploadFileFour3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourImageUrl3 != null) {
//            departmentInfo.setQuestionFourImageUrl3(fileNameQuestionFourImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFourImageUrl3;
        }

        //Q5
        String fileNameQuestionFiveAImageUrl1 = FileUtils.fileUpload(uploadFileFiveA1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveAImageUrl1 != null) {
//            departmentInfo.setQuestionFiveImageUrlA(fileNameQuestionFiveAImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveAImageUrl1;
        }

        String fileNameQuestionFiveAImageUrl2 = FileUtils.fileUpload(uploadFileFiveA2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveAImageUrl2 != null) {
//            departmentInfo.setQuestionFiveImageUrlA2(fileNameQuestionFiveAImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveAImageUrl2;
        }

        String fileNameQuestionFiveAImageUrl3 = FileUtils.fileUpload(uploadFileFiveA3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveAImageUrl3 != null) {
//            departmentInfo.setQuestionFiveImageUrlA3(fileNameQuestionFiveAImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveAImageUrl3;
        }

        String fileNameQuestionFiveBImageUrl1 = FileUtils.fileUpload(uploadFileFiveB1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveBImageUrl1 != null) {
//            departmentInfo.setQuestionFiveImageUrlB(fileNameQuestionFiveBImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveBImageUrl1;
        }

        String fileNameQuestionFiveBImageUrl2 = FileUtils.fileUpload(uploadFileFiveB2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveBImageUrl2 != null) {
//            departmentInfo.setQuestionFiveImageUrlB2(fileNameQuestionFiveBImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveBImageUrl2;
        }

        String fileNameQuestionFiveBImageUrl3 = FileUtils.fileUpload(uploadFileFiveB3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveBImageUrl3 != null) {
//            departmentInfo.setQuestionFiveImageUrlB3(fileNameQuestionFiveBImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveBImageUrl3;
        }

        String fileNameQuestionFiveCImageUrl1 = FileUtils.fileUpload(uploadFileFiveC1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveCImageUrl1 != null) {
//            departmentInfo.setQuestionFiveImageUrlC(fileNameQuestionFiveCImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveCImageUrl1;
        }

        String fileNameQuestionFiveCImageUrl2 = FileUtils.fileUpload(uploadFileFiveC2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveCImageUrl2 != null) {
//            departmentInfo.setQuestionFiveImageUrlC2(fileNameQuestionFiveCImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveCImageUrl2;
        }

        String fileNameQuestionFiveCImageUrl3 = FileUtils.fileUpload(uploadFileFiveC3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFiveCImageUrl3 != null) {
//            departmentInfo.setQuestionFiveImageUrlC3(fileNameQuestionFiveCImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionFiveCImageUrl3;
        }

        String fileNameQuestionSixImageUrl1 = FileUtils.fileUpload(uploadFileSix1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSixImageUrl1 != null) {
//            departmentInfo.setQuestionSixAnswerImage(fileNameQuestionSixImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSixImageUrl1;
        }

        String fileNameQuestionSixImageUrl2 = FileUtils.fileUpload(uploadFileSix2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSixImageUrl2 != null) {
//            departmentInfo.setQuestionSixAnswerImage2(fileNameQuestionSixImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSixImageUrl2;
        }

        String fileNameQuestionSixImageUrl3 = FileUtils.fileUpload(uploadFileSix3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSixImageUrl3 != null) {
//            departmentInfo.setQuestionSixAnswerImage3(fileNameQuestionSixImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSixImageUrl3;
        }

        //Q7
        String fileNameQuestionSevenImageUrl1 = FileUtils.fileUpload(uploadFileSeven1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSevenImageUrl1 != null) {
//            departmentInfo.setQuestionSevenAnswerImageUrl(fileNameQuestionSevenImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSevenImageUrl1;
        }

        String fileNameQuestionSevenImageUrl2 = FileUtils.fileUpload(uploadFileSeven2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSevenImageUrl2 != null) {
//            departmentInfo.setQuestionSevenAnswerImageUrl2(fileNameQuestionSevenImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSevenImageUrl2;
        }

        String fileNameQuestionSevenImageUrl3 = FileUtils.fileUpload(uploadFileSeven3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionSevenImageUrl3 != null) {
//            departmentInfo.setQuestionSevenAnswerImageUrl3(fileNameQuestionSevenImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionSevenImageUrl3;
        }

        //Q8
        String fileNameQuestionEightImageUrl1 = FileUtils.fileUpload(uploadFileEight1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionEightImageUrl1 != null) {
//            departmentInfo.setQuestionEightImageUrlA(fileNameQuestionEightImageUrl1);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionEightImageUrl1;
        }

        String fileNameQuestionEightImageUrl2 = FileUtils.fileUpload(uploadFileEight2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionEightImageUrl2 != null) {
//            departmentInfo.setQuestionEightImageUrlB(fileNameQuestionEightImageUrl2);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionEightImageUrl2;
        }

        String fileNameQuestionEightImageUrl3 = FileUtils.fileUpload(uploadFileEight3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionEightImageUrl3 != null) {
//            departmentInfo.setQuestionEightImageUrlC(fileNameQuestionEightImageUrl3);
//            departmentInfoBiz.addOrUpdate(departmentInfo);
            return fileNameQuestionEightImageUrl3;
        }

        String fileNameQuestionTenImageUrl1 = FileUtils.fileUpload(uploadFileTen1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTenImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTenImageUrl1,null,null,null,null,null);
            return fileNameQuestionTenImageUrl1;
        }

        String fileNameQuestionTenImageUrl2 = FileUtils.fileUpload(uploadFileTen2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTenImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTenImageUrl2,null,null,null,null);
            return fileNameQuestionTenImageUrl2;
        }
        String fileNameQuestionTenImageUrl3 = FileUtils.fileUpload(uploadFileTen3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionTenImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionTenImageUrl3,null,null,null);
            return fileNameQuestionTenImageUrl3;
        }
        String fileNameQuestionElevenImageUrl1 = FileUtils.fileUpload(uploadFileEleven1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionElevenImageUrl1 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionElevenImageUrl1,null,null);
            return fileNameQuestionElevenImageUrl1;
        }

        String fileNameQuestionElevenImageUrl2 = FileUtils.fileUpload(uploadFileEleven2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionElevenImageUrl2 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionElevenImageUrl2,null);
            return fileNameQuestionElevenImageUrl2;
        }

        String fileNameQuestionElevenImageUrl3 = FileUtils.fileUpload(uploadFileEleven3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionElevenImageUrl3 != null) {
//            QuestionTwo questionTwo=null;
//            if (departmentInfo.getQuestionTwo()!=null){
//                questionTwo = departmentInfo.getQuestionTwo();
//            }
//            departmentInfoBiz.addOrUpdate(departmentInfo,questionTwo,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,fileNameQuestionElevenImageUrl3);
            return fileNameQuestionElevenImageUrl3;
        }

        String fileNameQuestionFourOnePicture1 = FileUtils.fileUpload(questionFourOnePicture1, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourOnePicture1 != null) {
            return fileNameQuestionFourOnePicture1;
        }

        String fileNameQuestionFourOneImage2 = FileUtils.fileUpload(questionFourOneImage2, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourOneImage2 != null) {
            return fileNameQuestionFourOneImage2;
        }

        String fileNameQuestionFourOneImage3 = FileUtils.fileUpload(questionFourOneImage3, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourOneImage3 != null) {
            return fileNameQuestionFourOneImage3;
        }

        String fileNameQuestionFourOneImage4 = FileUtils.fileUpload(questionFourOneImage4, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameQuestionFourOneImage4 != null) {
            return fileNameQuestionFourOneImage4;
        }

        String fileNameCanUserDepartmentImage1 = FileUtils.fileUpload(canUserDepartmentImage1File, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameCanUserDepartmentImage1 != null) {
            return fileNameCanUserDepartmentImage1;
        }

        String fileNameCanUserDepartmentImage2 = FileUtils.fileUpload(canUserDepartmentImage2File, FilePathConfig.CONFERENCE_PICTURE_DIR, FilePathConfig.CONFERENCE_PICTURE_FIX);
        if (fileNameCanUserDepartmentImage2 != null) {
            return fileNameCanUserDepartmentImage2;
        }

        return "1";
    }

    // ******************************************************************************
    // ********************************** CRUD END **********************************
    // ******************************************************************************
}